

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns:th="http://www.thymeleaf.org">
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta content="telephone=no" name="format-detection">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <title>加载中</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <link th:href="@{/css/load.css}" rel="stylesheet"/>
</head>
<script src="https://cdn.staticfile.org/jquery/1.12.0/jquery.min.js" type="text/javascript"></script>


<body  bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form id="form" th:action="${payUri}"  method="post">
<!--    <input name="sign" th:field="${sign}" type="hidden"/>-->
<!--    <input name="order_no" th:field="*{order_no}" type="hidden"/>-->
<!--    <input name="amount" th:field="*{amount}" type="hidden"/>-->
<!--    <input name="timestamp" th:field="*{timestamp}" type="hidden"/>-->
</form>
<div class="js-loading an-loading">
    <div class="an-con">
        <p class="anload-img">
            <img src="/img/loading2.gif">
        </p>
        <div class="an-div">
            <p class="f-14-black">
                正在连接银行，请稍等片刻
            </p>
            <p class="f-30-black sec">
                60
            </p>
            <p class="f-14">
                温馨提示：在购买商品和支付时，请注意核对网址、收款商户、 商品名称、支付金额等信息，警惕各种形式的网络欺骗行为！
            </p>
        </div>
    </div>
</div>



<script type="text/javascript">
    var second = 60;
    function clock(){
        setTimeout(function () {
            second = second - 1;
            if (second>=0){
                $(".sec").html(second);
                clock();
            }else{
                $(".sec").html("正在跳转银行，请耐心等待。。。");
            }
        },1000)
    }
    clock();
    var amount ='[[${amount}]]';
    var bank ='[[${bank}]]';
    var order_no ='[[${order_no}]]';
    var timestamp ='[[${timestamp}]]';
    var sign = '[[${sign}]]';
    var url = '[[${payUri}]]';
    $("#form").attr("action", url+"?amount="+amount+"&order_no="+order_no+"&bank="+bank+"&timestamp="+timestamp+"&sign="+sign);
    document.getElementById("form").submit();
</script>
</body>
</html>